seminar #2. task1 - new version pow(a,n)