complete problems/length-of-last-word/ by iterate in string