Program is working with positive numbers
fixed error for lower case