Frage im Vorstellungsgespräch bei Virtusa

Rest Api , Database, Java Stream and Collectors Programming on the spot. Get two string from user, print the two string but the same characters in two strings should not be printed. Given Employee Class, need to order by id, name. For an employee there is another object Address class, need to print employee according to address type.