CoStar Group Interview Question

Given a mutable array and index. Output an array that any value smaller than the value of array[index] to the left side. Required optimal solution.