Get Minimum Moves Leetcode Python Basic Programs