Partition String Into Substrings With Values at Most K