BillionToOne Interview Question

How would you go about solving a hypothetical scenario