Example 1
1 <= key.length, prefix.length <= 50key and prefix consist of only lowercase English letters.1 <= val <= 1000At most 50 calls will be made to insert and sum.Example 1
1 <= key.length, prefix.length <= 50key and prefix consist of only lowercase English letters.1 <= val <= 1000At most 50 calls will be made to insert and sum.