Resolve challenge https://www.hackerrank.com/challenges/synchronous-shopping
Run test for see ways for two cats and summary timing of travel.
Example:
Way 1: 1 -> 2 -> 3 -> 4 -> 5 -> 4 -> 3 -> 2 -> 1 -> 1000
Way 2: 1 -> 1000 -> 999 -> 998 -> 997 -> 996 -> 997 -> 998 -> 999 -> 1000
Shorter way weight: 9000