I kind of figured out the logic but i am not sure, so please help me out with the approach and if u can share a code it will be helpful.
I kind of figured out the logic but i am not sure, so please help me out with the approach and if u can share a code it will be helpful.