IBM Interview Question

most optimized random algorithms