Pergunta de entrevista da empresa CGI

Basic OOPS questions and logical reasoning.