Pergunta de entrevista da empresa Pinterest

They asked for string manipulation into "justified" blocks of other strings given a character count. notable that the code is not run through a code checker, instead the interviewer checks it