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