Problem

Return how many times subtract 1 until 0.

Examples

  • decrementToZero(5) -> 5
Compile and test (Ctrl+Enter)