Amazon Interview Question

ml basic + sampling coding question