Leetcode solving: 1991. Find the Middle Index in Array