give array arr 4 digit find late 24hour time digit exactly once24hour time format HHMM HH 00 23 MM 00 59 the early 24hour time 0000 late 2359return latest 24hour time HHMM format if valid time return string Example 1input arr 1234output 2341explanation the valid 24hour time 1234 1243 1324 1342 1423 1432 2134 2143 2314 2341 of time 2341 latestexample 2input arr 5555output Explanation there valid 24hour time 5555 valid Constraintsarrlength 40 arri 9