Amazon Interview Question

1) Two Sum problem 2) Tree DFS to find average employee rating based on chain of command.