Cognizant interview question

Questions centred around on the Stack & domain