Pergunta de entrevista da empresa Yahoo

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