Pergunta de entrevista da empresa Altimetrik

Code for finding sub array whose sum is less than x