How To Solve This Amazon Coding Interview Question Javascript Youtube

How To Solve This Amazon Coding Interview Question Javascript Youtube