Sigma Computing Interview Question

Drawbacks of current implementation, New function implementation