Why do I say this? Because uphill cycling involves willpower and a non-quitting attitude to get you through. The case in point is when you've completed about 25km+ from Dehradun towards Mussoorie, which is all continuous uphill, likely with all the stops you needed along the way.
The last stoppage is possibly at the challenging climb that awaits you at the Library area, also called Kitab Ghar near Mussoorie. This leads you to Mussoorie Mall Road chowk in about 2 to 2.5km, with a very steep incline that requires careful consideration.
It's an interesting space for your thoughts: "Can I do it?", "Let's walk all the way", "I can't do it anymore", or "Let's see how it goes".
If you choose the latter, well, I have a kindred spirit in you.