Factors affecting executive function in children with autism spectrum disorder