Aspire Systems Interview Question

zigzag pattern