The LCD device should be able to tell the right time in the format HH:MM:SS in 12-hour format. You can refer to the picture to get an idea.The device is a simple "level indicator" which has to be converted into a watch. How will you program it to work?

Hard LCD Watch Time Puzzle

The first digit except bottom segment can encode MM (6^2=64>=60).
Some order is needed to be agreed upon so that they represent the MM in binary.
Each element of display is a binary digit:
"On"=1
"Off"=0

In the same manner you can encode seconds by using the second digit.

The rest four elements of display (two bottom segments and two dots) can be used to encode HH (4^2=16>=12)