Pergunta de entrevista da empresa Google

Two Sum question very nice