https://drawcoloring101.blogspot.com/2021/05/pythonhow-to-find-minimum-number-of.html