Given an array of integers where each element represents the maximum number of jumps that can be made ahead from that element.

You are located at the starting index of the array.
Write a method to return the minimum number of jumps to reach the end of the array. If an element is 0, you cannot move through that element.