Add and Search Word - Data structure design(LeetCode 211):

Problem