https://jamilhallal.medium.com/how-to-find-all-distinct-elements-of-a-given-integer-array-5f2ddfe734a5