Smaller index
Complete the following function according to its docstring usinga while loop. The lists we test will not all be shown; instead,some will be described in English. If you fail any test cases, youwill need to read the description and make your own test.
def smaller_index(items):
\"\"\" (list of int) -> int
 ÂÂ
Return the index of the first integer in items that is less thanits index,
or -1 if no such integer exists in items.
 ÂÂ
>>> smaller_index([2, 5, 7, 99, 6])
-1
>>> smaller_index([-5, 8, 9, 16])
0
>>> smaller_index([5, 8, 9, 0, 1, 3])
3
\"\"\"