Cognizant Interview Question

regarding technical stuff there were some difficult questions