Topic: Array Problem / Level: beginner

Problem: Calculate the sum of the absolute differences of consecutive elements in an array.

Run the code to see the output here...