Stock Range Finder

A medium Python mock interview question on DataDriven, with an AI interviewer who asks follow-up questions and a hire or no-hire decision at the end.

Domain
Python
Difficulty
medium
Seniority
L3

Interview Prompt

The market-data team dumps end-of-day OHLCV bars as a list of CSV rows, one string per ticker per trading day in the form `Date,Ticker,Open,High,Low,Close,Volume`. A trader wants a quick volatility snapshot for one symbol from `analyze_ticker(lines, ticker)`: the day with the widest intraday swing (High minus Low) as `max_range` and `max_range_date`, plus the symbol's average daily Volume as `avg_volume`.

Summary

Prices move. One stretch had the widest gap.

How This Interview Works

  1. Read the vague prompt (just like a real interview)
  2. Ask clarifying questions to the AI interviewer
  3. Write and run your Python against test cases
  4. Answer the interviewer's follow-up questions, then get a hire or no-hire decision