Google interview question

Find out the outputs for the given code.