The immune system is defined as a complex network of cells and proteins that defends the body against any kind of infection. It is said…