Cognizant interview question

regarding technical stuff there were some difficult questions