Qualtrics interview question

Mainly Graph and tree problems