Leetcode 2463. Minimum Total Distance Traveled | Hello Interview