The implementation for this task is different from described inside the pdf!
Instead of implementing main, you have to implement a different function snake:
int snake(int K)
Instead of calling get_speed, use the K provided in the argument. Instead of calling tell_length, return your answer. Calls to ask_snake are unchanged.