Shift Technology Interview Question

Time Complexity of a function