Pregunta de entrevista de Altimetrik

Code for finding sub array whose sum is less than x