VERSION 3
using 'SET' concept.
sum(set of total numbers - set of non self numbers)