Meta interview question

implement cd command in directory