Not able to understand the question

Hello…
I am doing this question from hackerearth…

What i understood from this question is they wanted to us to find distance between two given nodes…
But i am not able to understand the two statement …
Please explain it.

Thanks