Question d’entretien chez Cognizant

Logic question. One puzzle also