Equinix interview question

One algorithm question and some real work problems