Cognizant interview question

Mechanical basic questions and programming basics