Given a string s and an integer k, return the maximum length of a contiguous substring of s that contains at most k distinct characters.
Constraints:
s.length
k
Given a string s and an integer k, return the maximum length of a contiguous substring of s that contains at most k distinct characters.
Constraints:
s.length
k