Simhapuri Energy interview question

Designing related question