• + 3 comments

    You can try to visualize the array as steps / stairs

    We are just noting down the bump ups and bump downs