Resideo Interview Question

How would I approach algorithmically identifying the various stages of an HVAC system?