NTR Group interview question

1. Reverse the string