There currently is one option to travel by night train from Lviv (Ukraine) to Szolnok (Hungary), taking between approximately 34 and 35 hours: Namely the 9 operated by MÁV-Start.
MÁV-Start, Hungary's national passenger railway, operates domestic and cross-border trains throughout the region.