Added solution for Self powers