week8 Number of Breakpoints Problem