add majotiy element solution