HashedIn by Deloitte Interview Question

Time complexity problems, trees and graph question