Deriv.com interview question

How to optimize the application?