Contradictory statement

Describe your issue

It says print “NO” and “YES” when the lines overlap.

Screenshot

Additional info

Can you provide link to this problem?