Pergunta de entrevista da empresa Infosys

given python program and need to find out the output