IGATE Interview Question

Basics should be strong enough