Bank of America Interview Question

How to generate a data sample give a distribution