Pregunta de entrevista de Andela

I was asked 2 sum Leetcode problem