Alaska USA Interview Question

I was shown a function written in Python and asked to explain the time complexity