DirectShifts interview question

Going through interview on Friday,