Endex interview question

Implement an approximation of some command line directory navigation functionality