American Express interview question

data structures, brain teasers