Pregunta de entrevista de Visa Inc.

Two sum leetcode and an API question