Ternary operator Please

Closed as a duplicate of https://discuss.kotlinlang.org/t/ternary-operator