An "Expert" level exercise from Edabit.com.
Each person in Italy has an unique identifying ID code issued by the national tax office after the birth registration: the Fiscal Code (Codice Fiscale). Given an Object
containing the personal data of a person (name, surname, gender and date of birth) return the 11 code characters as a string, according to certain rules. There are three parts of the fiscal code, corresponding to the four parts of the Object
.
[Surname][Name][DOB & Gender]