problem 122, sixth submit, got 'Time Limit Exceeded on test 22 	733 ms	2787 kb'
 - in function find_one_path, search the path in two directions.