Given a string s and an integer k, return the length of the longest substring of s such that the frequency of each character in this substring is less than or equal to k. and "abc" k=2 return 0