Bluespire Interview Question

twosum problem to code. time complexities. oops