Flipkart interview question

Implementation of tries