LinkedIn interview question

Q: Write a method to justify a Paragraph