Calculate baseball stats for a developer challenge exercise