Update Distinct.java

using Java collection Set to de-duplicate arrays and lists