Pergunta de entrevista da empresa Infosys

Related to oops and simple coding question