by

Interview Cake Problem #9

I was stuck until the hint suggested swapping values was a legit way to solve the problem. I used JS and Mocha again, and my solution matched Interview Cake’s. Woohoo!