Answer :
The example is a metaphor. It means that the hills are dark. Hills usually aren’t actually black. It doesn’t use like or as and it doesn’t use a human quality on a non-human thing.
not a simile because it doesn’t use like or as, and not personification because it is not giving non-human things human characteristics, therefore it is a metaphor because it is referring to dark hills but they aren’t actually black.