Write a function that receives a slice of int and an int representing the initial value. If the int is odd it should multiply the accumulated value. If it is even, it should be added instead. Return the result. If the slice is empty return 0.
Write a function that receives a slice of `int` and an `int` representing the initial value as arguments.
You should traverse the slice and for each `int` check the following restrictions:
- If the `int` is odd, multiply it by the init value. Return the accumulated value after traversing the entire slice.
- If the `int` is even, add it to the init value. Return the accumulated value after traversing the entire slice.