Accretive Technology interview question

Write a function to justify text.