to String « Array « Ruby






1.Convert array to a set: it removes duplicate elements for you
2.Inject a two-dimensional array to set