An exercise using DFS to model and track friendships for a given input.