Morgan Stanley interview question

Find a median in an array.