Iterate to minimum possible time
while ( hr >= 0 ) : NEW_LINE INDENT h0 = hr // 10 NEW_LINE h1 = hr % 10 NEW_LINE m0 = m // 10 NEW_LINE m1 = m % 10 NEW_LINE s0 = s // 10 NEW_LINE s1 = s % 10 NEW_LINE p = 0 NEW_LINE arr = [ h0 , h1 , m0 , m1 , s0 , s1 ] NEW_LINE DEDENT