Pergunta de entrevista da empresa TCS Communications

In an unsorted array find subbarrays with sum equal to given target