Motorola Solutions Interview Question

Write the output for a given segment of code