Cognizant interview question

two aptitude questions