https://alawirisaddam.blogspot.com/2021/03/algorithms-and-data-structure-drawing-test-4-ex-4.html