Domanda di colloquio di Vir Softech

Same rectangle question and also deadlock