Pregunta de entrevista de Cognizant

Technical questions and logical programming