Video solution with explanation: https://youtu.be/BizUE-IvZto
Chef got Recipes Video Editorial
Chef and a Beautiful Digit Video Editorial
Chef and Number Game Video Editorial
Yet Again a Subarray Problem