Cognizant Interview Question

Java programs and logic and Senario based questions