YouTube interview question

Rather straight-forward bucket sort question.