Logitech interview question

A geek engineer asked question about string reverse