TechnoNext Interview Question

2 sum and basic map problem