NRI FT India interview question

questions on trie and dp with javascript