Generate uniform 0–6 from biased coin | LinkedIn Interview Question