Everyone has a secret which only he/she knows. Normally, an agreement between a set of people which is meant to…