def findLoop(n, m, arr):
    for i in range(n):
        x = arr[i]
        for j in range(m):
            if arr[i + j] != x:
                break

163444d45931432915959c4b7a1d92ac4f34c58e
<mask token>

def findLoop(n, m, arr):
    for i in range(n):
        x = arr[i]
        for j in range(m):
            if arr[i + j] != x:
                break
