Pregunta de entrevista de Perry Ellis International

How would I solve a problem they described?