* fixed a bug the answer is 0 even all elements are negative in input
 array