← Back to Jane Street Interview Questions

Question

A small shop has five customers left to serve before it closes. Ordinarily it earns $16 of margin on each sale. A customer may also ask about returning an item bought on an earlier day; these earlier returns are handled separately and do not affect the five new sales.

Each of the five customers independently has a 25% chance of making such a request, immediately after buying their new item. As soon as the first request occurs, the manager offers a discount to every later customer, reducing the margin on each later sale to $8. The customer who triggers the change still produces the original $16 margin. All five customers buy regardless of discounts or requests.

What is the expected total margin from these five new sales?

Hint 1

For sale \(i\), ask whether any of the first \(i-1\) customers has made a return request. The request by customer \(i\) happens too late to change sale \(i\).

Begin with five $8 margins. Each sale contributes an extra $8 exactly when no earlier request occurred; that event has probability \((3/4)^{i-1}\).

Check your answer

© 2026 EverythingQuant. All Rights Reserved.