Given a string, find the length of the longest substring T that contains at mostkdistinct characters.
For example, Given s =“eceba”and k = 2,
“eceba”
T is "ece" which its length is 3.