Here, we compare the first character of the ticket IDs with that of the specified ledger hash. As you can see, the first character of T2 and T3 is the same as the first character of the ledger hash — unlike T1. So, T1 is removed, and we repeat the same process for the second character of the hashes. T2 has the same second character as the ledger hash as opposed to T3. So, Ticket 3 is eliminated and T2 wins the lottery.