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.
It's not the sum of the indices what you need to use, read the description again or this post: https://www.codewars.com/kata/54d81488b981293527000c8f/discuss#60aeb44f73e9d2002aff7f34
You should optimize your code :) I faced the same problem and did homework - optimized my loops to decrease timings. So after that I've passed "Attempt" tests too.
Time: 4788ms Passed: 50Failed: 0
Use
print(some_value, flush = True)
The test is ok. The only number of a that's in b is -15.