Does that function run in the optimal time complexity for the problem? If it does can you say what the complexity is; if it does not, can you write a better algorithm; and if it unsolved, can you tell me the runtime of the best know algorithm is?