Elis Interview Question

2Sum question from leetcode and one more easy question