Amazon OA2

一道 Count number of substrings with exactly k distinct characters, 一道是 top 5 highest review score