Deriv.com Interview Question

How to solve context length issue