getpositiondigitssum

CF

Function getPositionDigitsSum

The function/method getPositionDigitsSum accepts two arguments SIZE and arr. The integer SIZE represents the size of the integer array arr.…