Differential privacy is a mathematically rigorous framework for protecting individual data privacy while analyzing large datasets. It works…