Pergunta de entrevista da empresa RemoteState

Two sum problem in a array.