TikTok Interview Question

Q: Pizza slices question on LC Q: Friends networking question on LC(graph problem)