ITrust Interview Question

javascript question based on arrays