The program below will fail to run because the Person class does not implement the Comparable interface. Modify the class so that the program runs correctly.

Complete the following file:

Person.java

import java.util.Set; import java.util.TreeSet; public class Person { private String firstName; private String lastName; public Person(String firstName, String lastName) { this.firstName = firstName; this.lastName = lastName; } public String toString() { return lastName + "/" + firstName; } // This method is used to check your work public static Set<Person> check(String[] names) { Set<Person> result = new TreeSet<Person>(); for (int i = 0; i < names.length; i += 2) { Person p = new Person(names[i], names[i + 1]); result.add(p); } return result; } }