ShareChat interview question

Questions were based on tree, DP and binary search