This code snippet allows you to know whether a word/sentence you have entered is a 'Magic Word' or not.
A 'Magic Word' is a word which has at any position two consecutive letters. This can be achieved by taking the ASCII values of the characters.
For example, if I enter "all the best", the program will return that is Magic Word since in the end 's' and 't' are consecutive(ASCII value of 't'=ASCII value of 's'+1).