Surya Interview Question

Debugging like how this output comes and what will be the output of this code