Cognizant Interview Question

one logic puzzle