pooraa interview question

q:time complexity