Discover a wealth of knowledge at Westonci.ca, where experts provide answers to your most pressing questions. Experience the ease of finding accurate answers to your questions from a knowledgeable community of professionals. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform.

I am having a party. There are people outside and inside, and the people inside are in the living room, the kitchen, and the dining room. Write me an algorithm that counts how many people are at my party.