Java Program to find number of way to split string such that each partition starts with distinct character with maximum number of partitions .
import java . util . * ; import java . lang . * ; import java . io . * ; class GFG {