Dunzo interview question

Coding Challenge: 3 problems. 1. PerfectSubstring in a string with eqaul char count. 2. MaxProfit 3. API - Show sorted list of articles title by num of comments.