How to Verify if the String Contains only Digits || Java Interview Question