SelfEmployed.com interview question

Asked about DSA time and space complexity