Pregunta de entrevista de Quantcast

How would you optimize an arbitrary function?