creart interview question

1. subarray that sums to k