Pergunta de entrevista da empresa Infosys

Basic coding problems and c++ language question