Microsoft interview question

Find pivot point in a list with a shift.