input: Write a python function to prompt the user to input a number between 1 and 10, and print the number plus one if the input is valid, otherwise print "Invalid number!".
  assert validate_and_increment(5) == 6
  assert validate_and_increment(10) == 11
  assert validate_and_increment(0) == "Invalid number!"
  assert validate_and_increment(11) == "Invalid number!"
output: def validate_and_increment():
      num = int(input("Enter a number between 1 and 10: "))
      if 1 <= num <= 10:
          print(num + 1)
      else:
          print("Invalid number!")