Brocade Interview Question

how does the lpm happens when the packet come in