If you can't use the BigNumber classes and must use arrays to hold the digits for the number you will need to work out an algorithm for doing the division. Take a piece of paper and a pencil, write out digits for the two arrays and a results array and see what it will take to do the division. I've never seen this problem worked out and don't have any ideas other than to do some experimenting on paper to see how to do it.
Some observations
For the number 12345
the digit in [0] is * 10^4
the digit in [4] is * 10^0