Subset sum target problem

Sir in the question we have to find the subarray having target sum or not .sir please can u check my code.it passes two test cases but not all…

vikash save ur code to coding block online ide and then post the link here