Booking.com interview question

Algorithms questions mostly about string. Can be solved by using sliding window technique or tries.