Amazon Interview Question

NDA but basically, some DFS problems