Sigma Computing interview question

Drawbacks of current implementation, New function implementation