Sponsored
Use these hints if you're stuck. Try solving on your own first.
If there are 5 stones in the heap, could you figure out a way to remove the stones such that you will always be the winner?
Solve with full IDE support and test cases