Update main.cpp

Updated with Strings instead of Arrays.

Also added the .length() function to check if the number entered is 3 characters.