ITC Infotech Interview Question

2Sum problem of the DSA