Driver code
arr = [ " ant " , " magenta " , " magnate " , " tan " , " gnamate " ] NEW_LINE n = len ( arr ) NEW_LINE print ( largestAnagramSet ( arr , n ) ) NEW_LINE arr1 = [ " cars " , " bikes " , " arcs " , " steer " ] NEW_LINE n = len ( arr1 ) NEW_LINE print ( largestAnagramSet ( arr1 , n ) ) NEW_LINE