Canva interview question

Implement an interface for Power generators with Capacity and Area mapping