Evaluated Sock Problem

I came up with possible approaches to the sock issue.