LTIMindtree Interview Question

DSA question 1: Two Sum