question link: https://leetcode.com/problems/count-all-possible-routes/
my solution
class Solution { public: