Please give me some hint

Please give me some hint to begin

I have elaborated you the problem as much as possible

Moreover if you still find it difficult, here’s the code For the same,

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

Got it but when i tried to solve it on leetcode it is sshowing error
and can you explain the arguements in the main function.

Hey @anmolaggarwal.432 this doubt has been marked as resolved. Please create a new thread and ask your query in it. Will respond accordingly.