Pergunta de entrevista da empresa Spectrum

Real time Problem - Should be solved using distribution