Added solution of all set total sum.