Canonical interview question

Solve a Python algorithm problem involving arrays and recursion.