JPMorganChase interview question

string and array manipulation coding questions