My solution for the OnLifeHealth baseball coding test.