Cognizant interview question

Logical questions on puzzles Questions on programming language