Consider the following input:

A: [-1, -2, -3]

B: [-4, -5, -6]

C: [1, 2, 3]

For this the “Expected Output” function shows output as 7. Why?

if you set (a, b, c) = (-1, -4, 1)

then the difference is = | max(-1, -4, 1) - min(-1, -4, 1) | = | 1 - (-4) | = 5