Amazon interview question

NDA but basically, some DFS problems