Upstart interview question

Write down cost function of a model