Given N values, Print "YES" if there exists atleast K negative values else Print "NO"

Given "N" values of an array, If the Number of Negative Integers Equals or Less than "K" Print "YES" else Print "NO"
Implementation: