Implement canReachBFS
Implement printPathDFS