ide:-https://ide.geeksforgeeks.org/hZ0DpAQjdc
Hello @manikjindal49 you have to print “No” if there is no solution but you are printing “NO”.
@manikjindal49 check this :