Solution to Basic Ruby Power - Array Exercise