Write a program to check whether the characters in the given word are equally spaced word or not. The distance between the characters should be same for a word to be equally spaced word.
Input String word |
Output (Boolean) |
Fox |
true |
abcd |
true |
acids |
false |
acegi |
true |
dins |
true |
abandon |
false |
hi |
true |