"The derivative of the absolute value is the Heaviside function"- so use the basic sum property and chain rule to differentiate this sum of absolute values.
" the Heaviside step function is the integral of Dirac's delta function" so the derivative of the Heaviside function, and so the second derivative of the absolute value is the Dirac Delta function. You have a sum of three absolute values so the first derivative will be a sum of three Heaviside functions and the second derivative a sum of three delta functions.
As a check, you could also do this is a very basic way: If x< -1, then all of x+ 1, x, and x- 1 are negative: for x< -1, f(x)= -(x+1)- 3(-x)- (x- 1)= x. What is the derivative of that? What is the second derivative? If -1< x< 1, then x+ 1 is positive but x and x- 1 are still negative. f(x)= x+ 1- 3(-x)- (x- 1)= 3x+ 2. What is the derivative of that? What is the second derivative? If 0< x< 1, then x+1 and x are positive but x- 1 is still negative. f(x)= x+ 1- 3x- (x- 1)= -3x+ 2. What is the derivative of that? What is its second derivative? If x> 1, all three of x+1, x, and x-1 are positive so f(x)= x+ 1- 3x+ x- 1= -x. What is the derivative of that? What is its second derivative? Be sure to calculate the derivative and second derivative at x= -1, x= 0, and x= 1 separately.