Sponsored
Use these hints if you're stuck. Try solving on your own first.
Try to update the row and column of the snake after each command.
Solve with full IDE support and test cases