Bluevine interview question

some sorting array problem - needed to use bucket sort