Implement a function find_least_non_negative_integer that determines the smallest non-negative integer i such that the quadratic expression A * i^2 + B * i + C is greater than or equal to a specified threshold K.
Input/Output Requirements
Input:
Four integer parameters:
A (coefficient of i^2)
B (coefficient of i)
C (constant term)
K (threshold value)
Output:
An integer i, which is the smallest non-negative integer satisfying the condition A * i^2 + B * i + C >= K.
Implementation
Create a file named /app/solution.py and implement the function according to the given signature and functionality. The implementation should efficiently find the least non-negative integer i by iterating starting from 0 and checking the condition until it is met.
Example
For inputs A = 1, B = 2, C = 3, K = 10, the output should be i = 2, since:
When i = 2: 1 * 2^2 + 2 * 2 + 3 = 4 + 4 + 3 = 11, which satisfies the condition (11 >= 10).
For inputs A = 1, B = 1, C = 1, K = 5, the output should be i = 2, since:
When i = 2: 1 * 2^2 + 1 * 2 + 1 = 4 + 2 + 1 = 7, which satisfies the condition (7 >= 5).
Ensure your implementation handles various scenarios, including edge cases where A, B, C, or K can take on any integer value, including negative integers.