Bok-Choy Video Transcript Tests Batch 2

can this be rewritten with less inline conditionals and more plain `if`s? Current logic is a bit difficult to follow.