Implement `wrapIndex(i, len)` returning `i` wrapped into the range `0..len-1`, handling negative indices.
Run your code to see results.