For every loop in the chain there has to be an equal and opposite loop. Even when you narrow it down to the last two loops it may seem impossible to invert them while the chain is threaded through the frame. I succeeded with a similar puzzle, but don't ask how it happened, I kept on fiddling knowing that if it could get into that position, then it can get out too.