Uber interview question

Codeforces OA with 3 LC easy and one hard trie problem