Tredence interview question

Java scripts