The given classes are the Clock interface of products, specified clocks, and the factory class ClockFactory to produce instances.
Your task is to implement the factory method produce. It should return a clock according to the specified type string:
"Sand" —
SandClock;"Digital" —
DigitalClock;"Mechanical" —
MechanicalClock.
Please, do not change the provided code of the clock classes.