is Surname Valid

fun isSurnameValid(surname: String?): Boolean

Method to validate a surname

Return

whether the surname is valid or not as boolean

Parameters

surname

: surname value to check the validity