Deloitte Interview Question

sub array with given sum k.