Microsoft interview question

latch question