IMC Trading interview question

OA1 String manipulation