Mathematical operations can be done in sequence or in batches if they are of the same type. For example, we can add many terms in one single operation, but we cannot add and multiply in one go, because there are priorities when dealing with products and sums. Same happens with powers.
In our problem we are required to perform a sequence of operations like follows