Check for negative values


#1

if A is negative then return 0,
they should mention that