Spreadex Interview Question

Extend the code given with new features