Time Complexity Of Set Function In Cpp