how would i have a recursive solution that takes the last number of the array, then can move either one or two spaces to the left(towards beginning of the array) while adding up the least amount.
Path from 10 to 0 = min(path from 57 to 0, path from 6 to 0)+10
Write a pathFrom function that takes one int (index) and returns a sum using the formula above. Remember that pathFrom = array[index] when index < 3.