Tinder interview question

Write a function that justifies a string given the maximum number of characters per line.