Amazon Interview Question

How would you implement speculative decoding