Sakshi and Art plz give me intuition for this problem , I mean HOW AND why its working count all odd degree vertices

plz give me intuition for this problem , I mean HOW AND why its working count all odd degree vertices