Yochana’s workflow engine needs to generate a valid transfer plan for a stack of five rings. Solve the Tower of Hanoi problem by moving the entire stack from a source peg to a target peg while preserving the ordering rules.
Implement hanoi_moves(n, source, auxiliary, target) and return the minimum sequence of moves.
n, plus three distinct peg names represented as strings: source, auxiliary, and target."A -> C", meaning the top ring moves from peg A to peg C.n rings from source to target.def hanoi_moves(n, source, auxiliary, target):