Compute shortest delivery route with dangerous stops | Google Interview Question