Pregunta de entrevista de Fyle

write code to fetch given data in O(1) in python