Publicis Sapient interview question

RAG, KnowledgeGraphs Leetcode dsa problem explicitly interviewer insisted that it should be solved in python only.