Bluespire interview question

twosum problem to code. time complexities. oops