Pergunta de entrevista da empresa Thomson Reuters

Basic coding questions on OOPS and two programs were given to solve.