It takes the same (huge) amount of time for all inputs - there's no early exit it always scans to INT_MAX. Hence O(1)
If an algorithm will always take 1 billion years to complete regardless of the input, then it's still O(1).
The behaviour does flatline as n approaches infinity