Edinburgh is widely regarded as one of the UK's most beautiful cities, and there is a simple way to get the best view of its magnificent castle while also avoiding crowds.