Tableau Software interview question

leetcode easy question about overlapping strings