We have a function printLength that prints to the console the length of a String:
fun printLength(s: String?) {
if (!s.isBlankOrNull()) println(s.length)
}
Add a contract to the provided function isBlankOrNull, which implies that when the function returns false, the receiver is not null.