s and an integer k, return the length of the longest substring that contains at most k distinct characters. If k is zero, no character may appear, so the answer is 0.k.s and an integer k, return the length of the longest substring that contains at most k distinct characters. If k is zero, no character may appear, so the answer is 0.// Run your code to see the output here.