VideoAmp Interview Question

How to optimize the Spark app?