Pergunta de entrevista da empresa Two Sigma

Derive the closed form solution for a cost function