This question is actually a puzzle that some of you must have solved as a kid. Let's say you have m Rupees and one chocolate costs rupees c. The shopkeeper will give you a bar of chocolate for free if you give him 3 wrappers. Can you determine how many chocolates can you get with the m Rupees you have?
This might seem like a tough problem to code in the first glance, but let's see Sajan break it down and make it easier.
The first takeaway from the segment is that you should always break the problem into a smaller one.
Suppose you were to write a more generalised code, instead of one chocolate for 3 wrappers, there was also a variable taken via input called r, i.e., instead of getting a chocolate for 3 wrappers, you now get it for 'r' wrappers. Now if you were to write a code for m, c and r, that doesn't seem like a big problem now does it?
Well, that is simply because you broke down a simpler problem with r=3 and then solved it by further breaking it down.
This is a common practice in the industry. You first start with a very easy and simple problem, solve that and then build upon it. After doing this several times, building on the existing code or product to improve it is how you end up with a worthy end product.