Have you seen this question before?
Given a list of integers, find the index at which the sum of the left half of the list is equal to the right half.
If there is no index where this condition is satisfied return -1.
nums = [1, 7, 3, 5, 6]
equivalent_index(nums) -> 2
nums = [1,3,5]
Next question: Missing housing data
equivalent_index(nums) -> -1
Use Shift + Enter to run code