the following code is meant to convert the vector [6,5,3] into the array [[0,0,0,0,0,0],[1,1,1,1,1],[2,2,2]] (i.e 6 0s followed by 5 1s followed by 3 2s) however I am getting th