I thought of a solution but I have a doubt if my solution will work.↵
↵
Please tell your solution of solving it., also a little analysis of the time complexity(if you have time)↵
↵
Here is the problem: [Click Me](https://drive.google.com/file/d/1DjC4yEnFZm3xsgfd2t7Cg2VsHMzEmAkC/view?usp=sharing)
↵
Please tell your solution of solving it
↵
Here is the problem: [Click Me](https://drive.google.com/file/d/1DjC4yEnFZm3xsgfd2t7Cg2VsHMzEmAkC/view?usp=sharing)