Question d’entretien chez Google

Jump game one string question trees and dp