Razorpay interview question

Basic Dynamic Programming Based DSA Questions