Approach-1 (High space complexity,but O(1) time) - Not a very good approach
source not stored for this graph (policy: none)
nothing calls this directly
no outgoing calls
no test coverage detected