12160 - Unlock the Lock (solution)

Solution using BFS approach