This program will justify the given paragraph of text using two different algorithms. The first one is a simple greedy algorithm while the other is a better one which uses dynamic programming.