I am using Nested when statements there is a case. Below is the code:
fun validateNewPinData(newPin: String, confirmPin: String, oldPin: String, isOldPinVisi