Driver Code
public static void main ( String [ ] args ) { String str = " AAAAABB " ; System . out . println ( " Maximum ▁ weight ▁ of ▁ a " + " ▁ transformation ▁ of ▁ " + str + " ▁ is ▁ " + getMaxWeight ( str ) ) ; } }