Coding Ninjas interview question

Kadanes Algorithm and subset sum equal to k.