Pergunta de entrevista da empresa Anonymous

Predict the output question in C and java