Implement KV cache for inference | Applied Intuition Interview Question