i have figured out my way to solve the problem ,but don't know how to solve it using Brute Force?
or how to list all the possibilities of the paths ?
thanks for your help!