Graphs S(n, k) and a Variant of the Tower of Hanoi Problem