Pergunta de entrevista da empresa Saama Technologies

Which algorithm would you use to sort this and why?