Driver code
public static void main ( String [ ] args ) { String arr [ ] = { " ant " , " magenta " , " magnate " , " tan " , " gnamate " } ; int n = arr . length ; System . out . println ( largestAnagramSet ( arr , n ) ) ; String arr1 [ ] = { " cars " , " bikes " , " arcs " , " steer " } ; n = arr1 . length ; System . out . println ( largestAnagramSet ( arr1 , n ) ) ; } }