Pregunta de entrevista de Tipalti

1. Home assignment 2 hours – class Person(), class Name(), class Address(). implement a utility that finds the minimal relation level between two people. 2. One hour assignment – implement a utility that will use .NET reflection APIs to print simple object. Then share screen, explain the code and questions about the code: - how to avoid cyclic loop (person inside a person) I was asked to implement and run. I answered using arrayList, check the list if contains before printing and add to the list after printing. complicity O(n). better complicity is to use hashTable O(1). - how to change the function print so that the user can choose where to print the output (screen, file…) – one answer is using interface.