hackerrank time conversion problem solution in python

visit shbcf.ru