In this video, we will see how to solve the above question which is asked in many companies interview.
I will be adding all such interview questions to the "Data Structures and Algorithms Interview question playlist" Link is below:
• Data Structures and Algorithms Interview q...
You can practise those questions from here: https://practice.geeksforgeeks.org/ba...
And if this link doesn't work just google "question_name gfg practice".
Also if you have any doubts, pls mention them in the comment box.