Question

Write a function that zips two arrays into one array?

Login to Submit

Examples

Input: [5, 6, 7] [8, 9, 10]
Output: [[5, 8], [6, 9], [7, 10]]

Input: [1, 2, 3] | [10]
Output: [[1, 10], [2], [3]]