Implement KV store and plan type conversions | OpenAI Interview Question