Amazon Interview Question

whats the function of RNN