Solving Problem 1019 Time Conversion on Beecrowd and testing my answer