c++ program that uses dynamic programming to define the length of a sentence to print pretty