End of Year Sale: Use Coupon Code END2025 to Get Extra 25% Off.
left and right, at the closest element's index.k, compare the elements at left - 1 and right + 1 to the target and expand the window towards the closer element.k, return the elements within the window.