Google interview question

To solve an algorithm question with a preferred programming language