Skip to main content
EasyAdd featurePython40 min

Org Graph Explorer: Learn the API, Then Query It

A practice debugging and feature-extension interview round in Python. Read an unfamiliar codebase, implement the requested behavior, run tests, and explain your decisions to an AI interviewer.

The incident

You are handed a tiny slice of a company ontology in src/ontology.py (read-only): objects have a type, a primary key, and properties, and you navigate typed links from one object to another. You have never seen this API. Learn it from the file, then implement three queries in src/analysis.py and wire the src/report.py summary.

The three queries climb in difficulty: count a team's members (filter), list a manager's direct reports (one hop, sorted), and total headcount under a manager (follow the reporting chain all the way down).

Requirements

  • team_size: count Employees whose on_team link points to the given team
  • direct_reports: sorted names of Employees whose reports_to link points to the manager
  • total_headcount: every Employee under a manager, transitively (not the manager)
  • Unknown team or manager names return 0 or an empty list, never an error
  • org_summary returns manager, direct_reports, and total_headcount together

What this round practices

This round tests how fast you can learn an unfamiliar API. You read a small typed object-and-link API cold, then write three org-chart queries that climb from a filter to multi-hop traversal. It mirrors interviews that hand you a new codebase and watch how you orient.

Files you will work in

These 7 workspace files open in the in-browser editor when you start the round. Hidden tests also run when you submit.

  • task.md
  • src/__init__.py
  • README.md
  • src/ontology.py
  • src/analysis.py
  • src/report.py
  • tests/test_analysis.py

What you are assessed on

The scored report evaluates both your investigation steps and what you explain during the conversation, not only whether the final test run passes.

  • Codebase understanding
  • Requirement decomposition
  • Implementation quality
  • Verification
  • Communication clarity

How the round works

You get 40 minutes in a Python workspace that runs in your browser, with no setup. Talk through your plan with the AI interviewer by voice or text, run the tests as often as you like, and submit when the visible checks pass. Hidden tests run on submit, and the scored report covers what you did and what you explained.

Ready to debug this codebase?

Open the workspace, run the failing check first, and walk the AI interviewer through your findings.