Clock Angle

Function to calculate the angle between the two hands on a clock representing that time.

Asked in frontend interviews at TikTok and ByteDance