TextJustification in leetcode