modified java code in leetcode_Text_Justification.java