New research suggests that intermittent fasting could also affect your brain function.