JUSPAY interview question

Program on Graph