Java Join Two Lists Python Hackerrank Solution