Pregunta de entrevista de Infosys

Asked the simple question based on logic