Pertamina interview question

How to solve problem