Diarrhea is a common health problem that affects people of all ages and can be caused by various factors such…