Epilepsy is a neurological disorder in which the brain generates abnormal electrical signal which results in seizures. A seizure is…