Given community->follower and follower->community maps, return all communities related to an input community (sharing followers); BFS.
Asked in the code screen stage.
Implement a function that takes a starting community and two maps, then returns every community reachable by repeatedly moving from a community to its followers, and from each follower to the communities they follow. Exclude the input community from the result. Return each related community once, in any order.
start_community: the community to begin fromcommunity_to_followers: dict mapping community id to a list of follower idsfollower_to_communities: dict mapping follower id to a list of community idsdef related_communities(start_community, community_to_followers, follower_to_communities):