Wow! This problem is kind of tricky; it requires some knowledge about
for...range loops. If you're ready to put your thinking cap on, brace yourself, and good luck! Otherwise, you can skip it for now and return any time later. A vector is a slice that is filled with numbers. In this task, you are going to work with integers.
Your task is to write the additional required code to create two functions that interact with a vector:
getSumOfVectorElements() int { ... }— that returns thesumof all elements in the vector.getProductOfVectorElements() int { ... }— that returns theproductof all elements in the vector.