Pergunta de entrevista da empresa Booking.com

Q1: parsing xml using function Q2: find the smallest common element in two arrays