return a new rdd containing the distinct elements in this rdd

Solutions on MaxInterview for return a new rdd containing the distinct elements in this rdd by the best coders in the world