Given a string s, partition it into as many parts as possible so that each letter appears in at most one part. Return the number of such parts.
Input: A quoted string s.
Output: Integer — number of partitions.
Input: "ababcbacadefegdehijhklij"
Output: 3
Explanation: Parts of sizes 9,7,8.Input: "eccbbbbdec"
Output: 1
Explanation: All in one part.Input: "abc"
Output: 3
Explanation: Each letter its own part.1<=s.length<=500lowercase letters