Implement compile-time function type verification | OpenAI Interview Question