Snippet code to validate a Chilean Rut, using Objective-C language