Crossover for Work interview question

Just balanced brackets.