Pergunta de entrevista da empresa Softsuave

what is the output for the following program?