Solve the zigzag conversion problem in leetcode using a list of queues.