Pregunta de entrevista de Micron Technology

Trie question which is medium level