Brian Kernighan’s Algorithm | Python | Castor Classes