Here we have an event log file produced by a Friends service, e.g.: Given a list of all users and the logs above, implement a function that returns the earliest timestamp at which every user became reachable from every other user via friendship connections (i.e., when the social graph first became fully connected).If the graph…