Leetcode 2399. Check Distances Between Same Letters | Hello Interview