Ad
  • Custom User Avatar

    Maybe I don't understand requirements but it should throw exceptio if h,m,s did not pass condition.

    Your resolution is great but in requirements it's written that h, m, s should be bigger/smaller than some nr.

    In your case if h,m,s i -1 test will not pass.