Solution for TomTom "Right angle" task.