programming problem
Hey, i just started programming and i have stumbled upon an interesting task :
The task is the following you are given 4 digits , they can form a valid hour from 00:00 to 23:59 task is to find an algorithm to show the maximum possible valid hour only by using these 4 digits.. please help and provide the algorithm preferably C++