Fixed following things:
1) Renamed setter function of end
2) Removed return from setter function
3) Add null check in Trie class for add and contains method