OYO interview question

Based on linked list, graph, DP, Binary trees