Pregunta de entrevista de Cisco

2 sum. From leetcode. Not that hard