Encephalitis is an inflammation of the brain tissue, which is a serious condition that can occur in children and adults.…