Bactobio Interview Question

Solve a coding challenge in Python.