Qualtrics interview question

Graph theory, DP.