Pergunta de entrevista da empresa Micro Focus

Write a function that gets parameters: string s, int r, int w, and prints the string r times, with only w characters per line.