Tesla Interview Question

Time complexity of different generic algorithms.