BillionToOne interview question

Python coding, basic genetics, conditionals, probabilities