I am not sure if it is the intention, but I believe that the function initArr will generate an array filled with the same number.