Solve the meeting maximum scheduling problem using dynamic programming, an O(n^2) solution.