Question d’entretien chez Salesforce

they asked me a coding question based on graph