Timer Component Hackerrank Python Interview