https://leetcode.com/contest/biweekly-contest-9/problems/minimum-knight-moves/
https://ide.geeksforgeeks.org/STnkM6zJj7
Why the runtime error?