

 Function speedDis1

    line 6 / 10
    1 + max(0, (n - x)) + max(0, (m - y))
    O(n^1)

Total Complexity: O(n^1)
