Problem 2 possible solution for finding at least one pair of socks