Pregunta de entrevista de ComUnus

In aptitude round,the question was based on the quantitative reasoning,logical reasoning and the basic knowledge of programming language.