Google Interview Question

Analyze parallel counting code to determine what possible sequences can be output.