Cognizant interview question

Tuning