Implemented graph traversal get answer