Cognizant Interview Question

Few logical questions.