Cyclic Iterator for K variable length vectors
Given K vectors, the task is to design a cyclic iterator that prints the elements of these vectors in a cyclic manner. For example: v1 = {1, 2, 3}, v2 = {4, 5, 6} and v3 = {7, 8, 9} then the output should be 1, 4, 7, 2, 5, 8, 3, 6 and 9. Examples: Input: v1 = {1, 2}, v2 = {3, 4, 5}, v3 = {6} Output: 1 3 6 2 4 5 Input: v1 = {1, 2}, v2 = {3, 4} Outpu