Pergunta de entrevista da empresa Quinbay

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