Andela interview question

I was asked 2 sum Leetcode problem