Abnormal AI Interview Question

leetcode medium variations, can't say specific ones