Tesla interview question

Time complexity of different generic algorithms.