Petronas Interview Question

Coding Task to develop small functionality