Medallia interview question

Two Sum, con preguntas extra al final.