Epic interview question

Permutations, Maps, Greedy, DP, BFS