Upstox Interview Question

Knapsack, binary search tree, DP