T-Mobile interview question

how to write a basic code string