Cognizant interview question

It wasn't that difficult