Amazon interview question

whats the function of RNN