Advanced (India) interview question

I dont remember a lot.