Practice Problem

Text Justification

Difficulty: Hard

Given an array of words and a maximum width, format the text so that each line has exactly the specified number of characters, fully justified (left and right).