takeUforward
Kth largest/smallest element in an array - Tutorial