JUSPAY interview question

Graphs/Trees