Tripadvisor Interview Question

1. Write a Java Program to find the intersection of 2 arrays. 2. Write a Java Program to print strings of 2014-2016, 2018, 2020 given an integer array containing {2014,2015,2016,2018,2020}.