Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I don't know if it's the cause of everything, but you should not round intermediate results.
Please format your code or it's unusable, see there: https://docs.codewars.com/training/troubleshooting/#post-discourse
Your algorithm is correct but your function is modifying the input arrays in place which is bad practice. As long as a function causes side effects when it is invoked, its behavior is undefined which means that you cannot guarantee that your function will produce consistent results every time. Consider computing the sums and cubes of the numbers as you are summing up the results instead of reassigning each value in the array before performing the summation, cheers :)