FourKites interview question

asked to implement the basic bash terminal using regex expressions, not able to get proper requirements from interviewer and he is also not that willing to give more inputs, so interview failed