Create koba's minimum value in random array.

I solve this question using recursive function.