Cognizant interview question

It was an average interview difficulty.