Coding Challenge · BEGINNER
A bakery tracks daily ingredient usage to decide when to restock. Given an array of integers representing the amount of flour (in kilograms) used each day, determine on which day the bakery first used more than a given threshold of flour. Return the 1-based index of that day, or -1 if the threshold is never exceeded.