Block interview question

Line Justify(search in leetcode)