From the title I thought this was going to be a variation on the bear and swimmer puzzle.
https://www.quantamagazine.org/can-math-help-you-escape-a-hu...