Cognizant interview question

About basic programming followed by two HR rounds.