Number of Breakpoints Problem

Solution to Bioinformatics Algorithms Problem 8B: Number of Breakpoints
Problem