QuantZig Interview Question

Real time business problem