IGATE Interview Question

the whole procedure was averqgq on difficulty level.