Spectrum Interview Question

Real time Problem - Should be solved using distribution