[SUBS]RANK

The Hanayama Chain Puzzle. Detailed solution.