9-year-old with autism writes book on her struggles