Hi Leetcoders,
Can someone help me with the mentioned question. It came to my friend who interviewed for Amazon SDE 1 role. I was solving this but was not able to come up with a good solution.
Any help will be much appreciated.