Google interview question

Deep technical security question and coding exercise.