Cognizant interview question

basics in depth