Almonds Ai interview question

reverse words from string without any internal function.