Hackerrank Python Average Method In Accounting