Solving the Horseshoe Lock-Puzzle