Diebold Nixdorf interview question

String manipulation in C