Company Interview Questions · Product & Retail Tech
Ola & CRED: Data Science
Ola & CRED: Data Science Interview Experiences and Questions. Rounds, real reported questions and model answers, compiled from public candidate reports (sources at the end). Practice mode hides every answer: say your answer first, press Show answer, then rate yourself. Use 🔁 Review again to build your revision list and 🎲 Random question for a quick drill.
About this interview
Compiled from public Ola Data Science interview reviews (ML/DL deep dives on past projects; linear regression cost function, gradient descent, trees, NLP, DSA; difficulty 3.7/5) and a public CRED Data Scientist question guide (DSA, SQL, ML, product sense, business cases; e.g. the hard paired products SQL). The questions are paraphrased, and the model answers are written by EasyLearnSpace.
| Ola | CRED | |
|---|---|---|
| Role | Data Scientist | Data Scientist |
| Rounds | First round: in-depth ML/DL on resume projects; others: coding + ML (video interviews) | Guide: DSA, SQL (hard), ML, product sense and metrics, business cases |
| Reported questions | Linear regression + cost function, gradient descent, tree models, NLP, DSA coding | Top 5 product pairs bought together, moving average, churn, A/B significance, data-project hurdles, portfolio pipeline architecture |
| Note | HR rescheduled several times; the interviewer gave hints | Product thinking is weighted heavily |
01Rounds at a glance
- Mobility (Ola): pricing/surge, ETA, demand forecasting, driver allocation, fraud.
- Fintech rewards (CRED): user engagement, credit-card payment behaviour, rewards economics, risk.
02Questions and model answers
Q1
Linear regression: define the cost function and derive the gradient-descent update.
- Model: ŷ = Xw + b. Cost (MSE): J(w, b) = (1/2n) Σ (ŷᵢ − yᵢ)².
- Gradients: ∂J/∂w = (1/n) Xᵀ(ŷ − y), ∂J/∂b = (1/n) Σ (ŷᵢ − yᵢ).
- Update: w ← w − α ∂J/∂w; b ← b − α ∂J/∂b. Scale the features for faster convergence. The closed form is w = (XᵀX)⁻¹Xᵀy.
Q2
CRED SQL (hard): find the top 5 product pairs most often bought together by the same user.
WITH up AS ( -- distinct user-product purchases
SELECT DISTINCT p.user_id, pr.name
FROM purchases p JOIN products pr ON pr.id = p.product_id
)
SELECT a.name AS product_1, b.name AS product_2, COUNT(*) AS together
FROM up a JOIN up b
ON a.user_id = b.user_id AND a.name < b.name -- each unordered pair once, alphabetical
GROUP BY a.name, b.name
ORDER BY together DESC, product_1, product_2
LIMIT 5;
- At scale: the self-join explodes for heavy users, so cap the products per user, pre-aggregate, or approximate with sampling or MinHash. State the ordering convention the question asks for (this one wants the alphabetically first item listed second, so swap the output columns if needed).
Q3
Product sense: how would you measure the success of CRED's rewards programme?
- North star: monthly active payers paying bills on time through CRED (core behaviour), plus retention.
- Supporting metrics:
- Reward redemption rate.
- Repeat payments.
- Payment value share.
- Engagement with new features.
- Referral rate.
- Economics: reward cost per incremental active payer, LTV/CAC, and the margin from partners.
- Guardrails: fraud and abuse rates, user complaints, payment failure rates.
- Causality: holdout groups for reward changes; cohort analysis.
Q4
How does Ola's surge pricing work conceptually, and how would you model it?
- Idea: when demand exceeds supply in a zone and time window, raise the price multiplier to reduce demand and attract drivers, restoring wait times.
- Model: 1. Forecast demand and supply per zone for the next 15–30 minutes (gradient boosting or spatio-temporal models using events, weather, time). 2. Estimate demand elasticity to price. 3. Choose a multiplier that meets a target ETA or fulfilment rate, with caps and smoothing (no sudden jumps) and fairness constraints.
- Evaluate: completed rides, ETA, cancellations, driver earnings, rider complaints; switchback experiments.
Q5
Explain a tree-based algorithm you used: why random forest or XGBoost over logistic regression?
- Trees capture non-linearities and interactions automatically, handle mixed feature types and missing values (XGBoost), and need no scaling.
- Logistic regression is more interpretable and well calibrated, and better with sparse high-dimensional text or very little data.
- Choice: cross-validated performance plus the need for explainability. Use SHAP to explain the tree models.
Q6
Describe hurdles you faced in a data project and how you overcame them.
- Data access delays: "I built the pipeline against a sample schema while approvals were pending, so I was ready on day 1 of access."
- Unclear metric definitions: "I aligned with the PM on a written definition doc."
- Model–business mismatch: "High AUC, but ops couldn't act on 30% of the flags. I retuned the threshold to the ops team's capacity."
- Each hurdle should show proactiveness and measurable impact.
03How to prepare
- Ola: ML maths (regression, gradient descent, trees), NLP basics, DSA; mobility case studies.
- CRED: hard SQL (self-joins, pairs, windows), product sense and metrics, rewards and fintech business cases.
Sources
Created by Ajeetkumar