Cognizant interview question

Aptitude questions and then 2 simple programs