Implement a Trie (prefix tree) that supports UPI ID autocomplete.
insert(upiId) — add a UPI ID (e.g., "shivam@paytm")search(upiId) → true/false exact matchstartsWith(prefix) → true/false prefix existsautocomplete(prefix, topK) → return up to K UPI IDs matching the prefix, sorted by frequencyinsert("alice@paytm") x3, insert("alex@paytm") x1, insert("bob@upi") x2
autocomplete("al", 2) -> ["alice@paytm", "alex@paytm"]