0

Given a 24 hour time, i.e. 20:48, output the nearest time where each physically adjacent pair of digits is also numerically adjacent, i.e. 21:01.
That is, each number in the output must differ from the numbers next to it by 1, and the output must be the closest time, forwards or backwards, for w...