Pregunta de entrevista de Two Sigma

Derive the closed form solution for a cost function