Pregunta de entrevista de Snap

Easy question. Two sum, three sum.