Patterns in output can help build logic.
*****
****
***
**
Above simple program tells that the difference between first and second line is just a * and same between third and second and also between fourth and third.
Once you understand what is changing and the pattern in it. You can find...
swapnilbawane.hashnode.dev1 min read