Algorithms with arrays traversal, accumulation, search - step by step

BG
Code
    Console
    The array
    Variablesthe index i is the arrow under the array
    Check and calculation
    New arraysfilled with push()