Google Interview Question

Find out the outputs for the given code.