add solution for validating a route in a graph or not in Cracking the Code Interview chapter 4 problem 2