Pregunta de entrevista de Staples

Write a Java program which takes time in format HH:MM and calculate the angle between hour and minute hand. SQL query with joins.