Morgan Stanley Interview Question

to write the code to find angle between legs of clock