For this Question: You are given a sequence of numbers of size N. You have to find if there is a way to insert + or - operator in between the numbers so that the result equals K.The first line of input contains two integers N and K. The next line of input contains N space- separated integers depicting the values of the sequence.

Constraints:-
1 <= N <= 20
-10^15 <= K <= 10^15
0 <= Numbers <=10^13Print YES if possible else print NO.Sample Input:-
4 4
1 2 3 4

Sample Output:-
YES

Sample Input:-
4 1
1 2 3 4

Sample Output:-
NO, I have written this Solution Code: def checkIfGivenTargetIsPossible(nums,currSum,i,targetSum):
	if i == len(nums):
		if currSum == targetSum:
			return 1
		return 0
	if(checkIfGivenTargetIsPossible(nums,currSum + nums[i],i+1,targetSum)):
		return 1
	return checkIfGivenTargetIsPossible(nums,currSum - nums[i], i+1,targetSum)

n,k = map(int,input().split())
nums = list(map(int,input().split()))

if(checkIfGivenTargetIsPossible(nums,0,0,k)):
	print("YES")
else:
	print("NO"), In this Programming Language: Python, Now tell me if this Code is compilable or not?