my attempt at solving leetcode 2185: counting words with a given prefix [SOLVED]

Published --