This is a walkthrough of one of the interview prep challenges on Hacker Rank: the sock merchant problem. I discuss two slightly different approaches which both solve the problem. Let me know if you have any other insights about this or if there are similar problems you'd like to see me solve.