Find max consecutive elements with sum below target | Microsoft