InterviewBit Problems   Profit Maximisation : Solved