Constrain sum of elements in an array

Hi ssureshgverifier,

This is not working, can you have a look once.

Thanks,