Solve ZigZag