Correct option is C
Given: Out of a few people who participated in a race, Sandeep ranked 17thfrom the top and 15thfrom the bottom.

From, Given information total persons participated in the race:
17+15= 32,
32-1= 31 (1 substract because Sandeep counted two times)
Thus, Option C is the correct answer.