Domanda di colloquio di JUSPAY

Question 3 based on tree and graph difficult