Time Limit exceded

Hi @shubhamhalder0
You are facing TLE because you are not including the case when sum<target.

Here is your corrected code :