Genpact Interview Question

What will be the output of the code