Pregunta de entrevista de Quinbay

write a code to find the sum of the distinct elements in the array