0
Task description:
Write a function "commonPrefix", which takes two strings as parameter and returns the common prefix.
Example: Parameter "abcdef" and "abc1gv" would return "abc".
My implementation:
fun commonPrefix(str1: String, str2: String): String {
var sRet = ""
var i = 0
val len...