Bark Interview Question

How to fix an oversight in the coding challenge