Amazon Interview Question

Questions were are array manipulations and Trees.