leetcode text justification refactoring