Sponsored
Use these hints if you're stuck. Try solving on your own first.
Try counting the number of ways in which the monkeys will not collide.
Solve with full IDE support and test cases