Ли is an interrogative particle.

https://ru.wiktionary.org/wiki/%D0%B....D0.BB.D0.B8_I