Google Interview Question

Implement the "cd" command in Python.