Amazon interview question

How would you implement speculative decoding