Motorola Solutions interview question

Write the output for a given segment of code