American Express Interview Question

data structures, brain teasers