Question related to graphs

Can someone please give me a hint on how to solve this problem?

can u please share question link ?

I am so sorry. I don’t have the link. It’s from a past contest. And apologies for the bad quality of pictures.