Pine Labs interview question

2 Sum Problem in coding Around