Return the value, except that anything below zero becomes zero. This is what stops a health bar going negative.
int clamp(int value)
Examples
There are also 3 hidden tests you can't see. Solve the problem, not the examples.