Pergunta de entrevista da empresa ESPN

Basic logical questions, like what will be the output of this code