Find last position of target element in sorted array

mediumLast edited: August 2, 2025