Yahoo interview question

Basic DS and algorithm questions, how to improve performance of web application on different layer?