How to detect cognitive dysfunction at early stages of multiple sclerosis?

How to detect cognitive dysfunction at early stages of multiple sclerosis?