my attempt at solving leetcode 806: number of lines to write string [SOLVED]

Published --