System verilog constraint such that sum of arr[10] is 100 without using .sum method

The other solutions impose addition constraints (element values inside 1 to 20)

You need to define what you want out of a “better solution” than what you provided.