Leetcode 2899. Last Visited Integers | Hello Interview