https://kotlinlang.org logo
Title
a

Alpesh Vas

11/06/2018, 8:33 PM
Still waiting for correct answer.
k

kartikpatodi

11/06/2018, 8:34 PM
it will return b
a

Alpesh Vas

11/06/2018, 8:35 PM
How could it possibly return two answers.
Oh you deleted the comment.
k

kartikpatodi

11/06/2018, 8:37 PM
b
is John only.. So if you invoke the function it will return
b
and result will be
John
k

karelpeeters

11/06/2018, 8:37 PM
Am I missing something 😕 What would it do except return
"John"
?
k

kartikpatodi

11/06/2018, 8:38 PM
@karelpeeters Nothing 🤣
n

Nikky

11/06/2018, 8:42 PM
no that is correct
answer is John and if its anything else the question was incomplete
a

Alpesh Vas

11/06/2018, 8:50 PM
yes answer is
John
. I just wanted to know how many people would give wrong answer. 😛
k

karelpeeters

11/06/2018, 8:50 PM
Take a look at https://github.com/angryziber/kotlin-puzzlers, there are lots of them!
a

Alpesh Vas

11/06/2018, 8:51 PM
Oh thanks.