Fluxon Interview Question

DSA round: 2 sum problem