Pergunta de entrevista da empresa PharmEasy

Two sum problem and its optimizations