What is the etymology of knotty?

Can you answer this question?