Seesaw Interview Question

LeetCode two sum question and using arrays