Gradient interview question

Standard Interview Q's