Implement randomized Quickselect without k-shift bug | Meta Interview Question