The Snake vs the Wind | HackerRank

Determine the path that the snake will take given that it wants to avoid the wind.