JavaScript Coding Challenge #2

Hello,

In this challenge we’re going to take a look at the Sock Merchant problem:

I’ll hope you’ll enjoy it.