In the above implementation we have considered every triplet three times so we have to divide every sum3 array element by 3
for i in range ( 1 , max_Element , 1 ) : NEW_LINE INDENT sum3 [ i ] = int ( sum3 [ i ] / 3 ) NEW_LINE DEDENT