Pregunta de entrevista de HashedIn by Deloitte

Question from string and b tree