class Solution {

    public List<String> fullJustify(String[] words, int maxWidth) {
        List<String> output = new ArrayList<>();
        int exclusiveStop = 0;
        int start = 0;
        while (exclusiveStop < words.length) {
            exclusiveStop = exclusiveStop(words, start, maxWidth);
            output.add(justifyLine(words, maxWidth, start, exclusiveStop));
            start = exclusiveStop;
        }
        return output;
    }

}