EnergyHub interview question

The coding assignment