Pine Labs Interview Question

2 Sum Problem in coding Around