OLA Electric interview question

How to approach in solving a problem