Longest Prefix Match in Trie | FE Prep