s1 = "Some string".split('')
s2 = "Some strong".split('')
s2len = s2.length
same = 0
s1.length.times do |i|
if i > s2len
break
end
if s1[i] == s2[i]
same += 1
end
end
puts "Same characters: #{same}/#{s1.length}"
czEgPSAiU29tZSBzdHJpbmciLnNwbGl0KCcnKQpzMiA9ICJTb21lIHN0cm9uZyIuc3BsaXQoJycpCgpzMmxlbiA9IHMyLmxlbmd0aApzYW1lID0gMAoKczEubGVuZ3RoLnRpbWVzIGRvIHxpfAoJaWYgaSA+IHMybGVuCgkJYnJlYWsKCWVuZAoJCglpZiBzMVtpXSA9PSBzMltpXQoJCXNhbWUgKz0gMQoJZW5kCmVuZAoKcHV0cyAiU2FtZSBjaGFyYWN0ZXJzOiAje3NhbWV9LyN7czEubGVuZ3RofSI=