Safe Destination Nodes - Coding problem | OneNoughtOne