Keep iterating till first digit hour becomes equal to second digit of minute and second digit of hour becomes equal to first digit of minute
while ( hh % 10 != Math . floor ( mm / 10 ) || Math . floor ( hh / 10 ) != mm % 10 ) { ++ mm ;