Deutsche Telekom interview question

Dp and Trie Data Structures