Reddit interview question

recursion, dynamic programming, algorithms and data structures.