Solved Minimum Substring required to reach score.