Icelandic Patronymic Name Checker

# Introduction In this challenge, you are tasked with implementing the functionality of an app that Icelanders use to check if two people are related before dating, due to the small population and the need to avoid inbreeding. The app utilizes the ancient Viking patronymic naming system, where a child's surname is the father's first name plus a suffix - 'sson' for sons and 'sdottir' for daughters. The challenge requires you to complete the code for the 'marry' function, which takes the local population data and the names of two people, and returns a string indicating whether they can marry based on certain rules.

|60 : 00

Click the virtual machine below to start practicing