Code reverse inputs