Crossover for Work Interview Question

Just balanced brackets.