Intel Corporation Interview Question

1. write a program that returns 4 if 7 is inserted and 7 if 4 is inserted. 2. two sum question from leetecode .