Andela Interview Question

I was asked 2 sum Leetcode problem