Akamai interview question

Sort binary array