Pregunta de entrevista de Sandia National Laboratories

How would you solve this problem in parallel?