Write a function that returns True if the phone number is in a valid format. Valid formats are as follows:
| With Country Code | Without Country Code |
|---|---|
| +1-892-445-7663 | 892-445-7663 |
| 1-892-445-7663 | (892) 445-7663 |
| 1 (892) 445-7663 | 892.567.8901 |
| 1.892.567.8901 | 1/892/567/8901 |
| 1 892 567 8901 | 892/567/8901 |
| 18925678901 | 892 567 8901 |
validate("578-332-1114") ➞ True
validate("57-332-1114") ➞ False
validate("577 332 1114") ➞ False
# More than one space in between digits clusters.
validate("57 332 1114") ➞ False
# Unacceptable digit cluster length.
validate("157%332-1114") ➞ False
# Unacceptable delimiter.
+1 or 1.