American Express interview question

Tree implementation