ATM machines allow 4 or 6 digit PIN codes and PIN codes cannot contain anything but exactly 4 digits or exactly 6 digits. Your task is to create a function that takes a string and returns true if the PIN is valid and false if it's not.
ValidatePIN("1234") ➞ true
ValidatePIN("12345") ➞ false
ValidatePIN("a234") ➞ false
ValidatePIN("") ➞ false