Added a potential solution for the first part of the socks problem.