Solve 'Insertion Sort with Shift Count' problem.