ModiFace interview question

Leet code medium about graph