InnovationM interview question

find the output of java code