chap4_prob2_nexthourhhin - current hour (integer from 1 to 12)hhout - next hour on a 12-hour clockThe function uses the formula: hhout = mod(hhin, 12) + 1
mod(hhin, 12) returns the remainder when hhin is divided by 12mod(hhin, 12) = hhin, so result is hhin + 1mod(12, 12) = 0, so result is 0 + 1 = 1Expected Output: Hours 1→2, 2→3, ..., 11→12, 12→1, 13→2, 14→3
Note: The modulo approach is more elegant and handles edge cases better.