Cognizant interview question

technical coding rounds was conducted