Odoo interview question

Octopus cave lights problem with OOP