The function only works for non-negative inputs. It does not work for negative inputs, and will return an error message if given a negative input.

