Pergunta de entrevista da empresa Yahoo

it was related to datastructures