Scalapay Interview Question

Explain what could be improved