• + 2 comments

    yes you are right if all elements of an array are negative then i don't choose any number and hence answer should be zero.