The question’s link is
https://online.codingblocks.com/player/12341/content/5197?s=1521
In the given question, i have tried to explore the multiple possibilities but I’m not being able to put it into a code and devise an algorithm. I’m unable to think where to begin from.
Please guide me in the above question.