Count Digits in a Number

Given an integer n, return the number of digits present in the number. The number can be positive or negative.

Difficulty:

Console