I suck and could not beat it.
It's amazing how much a simple concept can mess with your mind when you really try to explore it.