Given four digits, count how many valid times can be displayed on a digital clock (in 24-hour format) using those digits.
The earliest time is 00:00 and the latest ti