Interview Question : Check if a string contains only digits or not

One string is given. Check if it contains only digits or not.