LinkedIn Interview Question

Write a function to sample from a non-uniform distribution