Starter codebase exposes a User class with friends and valid_recommend helpers. Three sub-tasks build from logic-bug fix to AI-assisted random recommender to mutual-friends Top-K ranking. Q1 — Logic-bug fix in valid_recommend Typical bug: the function does not exclude the user themselves and/or existing friends from candidates. Q2 — Implement random_recommend Pick a random non-friend user. Prompt the AI with the class signature so the output matches the existing interface. Q3 — Top-K mutual-friends recommendation Score each candidate by |friends(u) ∩ friends(candidate)|; return the