Solve the pill eating possibility problem, DP could be used to make it O(n^2).