Tally Solutions interview question

String reverse was asked and we went into depth about what each lines does