A Dynamic Programming problem - Find the minimum number of hops required to traverse a given array.