Driver program
public static void main ( String [ ] args ) { System . out . println ( runCustomerSimulation ( 2 , " ABBAJJKZKZ " . toCharArray ( ) ) ) ; System . out . println ( runCustomerSimulation ( 3 , " GACCBDDBAGEE " . toCharArray ( ) ) ) ; System . out . println ( runCustomerSimulation ( 3 , " GACCBGDDBAEE " . toCharArray ( ) ) ) ; System . out . println ( runCustomerSimulation ( 1 , " ABCBCA " . toCharArray ( ) ) ) ; System . out . println ( runCustomerSimulation ( 1 , " ABCBCADEED " . toCharArray ( ) ) ) ; } }