Amazon interview question

sql , linux , regex