Ли is an interrogative particle.

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