FastPrepDebug Fair-Value Lookup
Problems/Debug Fair-Value Lookup

Debug Fair-Value Lookup

Millennium logoMillennium● HardNEW GRADINTERNOA

Updated Nov 2026

QuestionConstraints

Problem statement

Source note: Reported in a Millennium online assessment for new grad and intern roles. The report shows the same fair-value lookup twice. First it is an implementation task, then a debugging task. The debugging version gives more of the edge-case rules. Complete schemas and sample tables are left out. We combined both into one task.

Our version is about 95% the same as the reported question.

The provided Pandas starter attempts an as-of fair-value lookup, but it mishandles timestamp order, exact-time observations, invalid prices, and the staleness boundary. Fix fair_value_at so it returns a one-row DataFrame with the column price.

Lookup rules

  1. Read the single row in query_params and convert all timestamps before comparing them.
  2. Consider only price rows whose timestamp is at or before query_time.
  3. Starting with the most recent eligible row, walk backward until the requested asset has a non-null, strictly positive price.
  4. If no valid observation exists, return NULL.
  5. Otherwise, calculate the candidate's age from its own timestamp. Return NULL only when that age is strictly greater than max_staleness_minutes; an observation exactly on the boundary is accepted.

Table schema

Pandas

Use the same input data with any supported language. Open the Schema tab in the editor to see the generated SQL setup or Pandas DataFrames.

prices

Price tape with one timestamp and three asset columns.

ColumnTypeNullableDescription
timestampPKTimestampNo—
Asset_1DecimalYes—
Asset_2DecimalYes—
Asset_3DecimalYes—

query_params

The one requested asset, query time, and allowed staleness.

ColumnTypeNullableDescription
assetTextNo—
query_timeTimestampNo—
max_staleness_minutesIntegerNo—

Expected result

Your query or function must return these columns.

ColumnTypeNullableDescription
priceDecimalYes—

Row order: must match exactly. Numeric tolerance: 0.

Constraints

  • The prices table contains at least 1 row and at most 2000 rows.
  • Price timestamps are unique but may arrive out of order.
  • The query_params table contains exactly one row.
  • The requested asset is exactly Asset_1, Asset_2, or Asset_3.
  • max_staleness_minutes is a nonnegative integer.
  • Return exactly one row; its price may be NULL.

More Millennium Online Assessment questions

  • Calculate the Half SpreadOA · Seen Sep 2026
  • Debug the Impact ModelOA · Seen Sep 2026
  • Debug the Risk-Limit QuoterOA · Seen Sep 2026
  • Hedge Inventory with Return CovarianceOA · Seen Sep 2026
  • Quote One RequestOA · Seen Sep 2026
  • Risk Limits and Inventory SkewOA · Seen Sep 2026
  • Track the Book and Mark Final PnLOA · Seen Sep 2026
  • Clean the TapeOA · Seen Sep 2026
  • Client Markout AnalysisOA · Seen Sep 2026
  • Debug the Tape CleanerOA · Seen Sep 2026

Similar questions at other companies

  • Prepare Taxi Driver Classification DataBoston Consulting Group · OABoston Consulting Group interview questions
  • Weekend Appointments for Consular Services ReschedulingMcKinsey & Company · OAMcKinsey & Company interview questions
  • Summarize Customer RecordsAgoda · OAAgoda interview questions
  • Benchmarking Tool ReportPalantir · OAPalantir interview questions
  • Latest New JobSphere · ONSITE INTERVIEW
  • In-Memory Database QueriesOpenAI · PHONE SCREEN · ONSITE INTERVIEWOpenAI interview questions
  • Second Highest SalaryHartford Financial Services · ONSITE INTERVIEWHartford Financial Services interview questions
  • Worker Management (Promotion Track), Part 4: Full-Shift Double PayAirbnb · OAAirbnb interview questions
  • Deployment Window SchedulerStripe · OAStripe interview questions
  • Hard Disk Clustering CostConfluent · OAConfluent interview questions

Millennium interview experiences

  • Millennium Full Stack Engineer Java Interview: 1 Experience
All Millennium interview questionsSee Millennium hiring insights