Your implementation just works for positive integers.
Your implementation just works for positive integers.