Give a polynomial-time quantum algorithm that recovers a subgroup hidden by an oracle over the symmetric group S_n.