In how many ways is it possible to read the word "MADAM" in the diagram?   You may go as you please, upwards and downwards, forwards and backwards, sny way possible along the open paths.   But the letters in every case must be contiguous, and you may never pass a letter without using it.