Fluxon interview question

DSA round: 2 sum problem