Pregunta de entrevista de Vir Softech

Same rectangle question and also deadlock