Pergunta de entrevista da empresa Dedalus

Two sums javascript. Can be found on leetcode