Cognizant Interview Question

Simple questions to test your logic.