Implement chunk(arr, size)
Write chunk(arr, size) that splits an array into consecutive groups of size — the last group may be shorter if the array doesn't divide evenly.
chunk([1, 2, 3, 4, 5, 6, 7], 3); // [[1,2,3], [4,5,6], [7]]