Hacking the Matrix

Report a typo

Neo is trying to hack the Matrix. He has a list of codes, but to solve this challenge, he must know the number of items in the list according to their size.

Sample Input 1:

1234 mom daddy4456 god hack me

Sample Output 1:

{4=2, 3=2, 9=1, 2=1}
Write a program in Kotlin
fun main() {
val list = readln().split(" ")
// write your code here
val res =

println(res)
}
___

Create a free account to access the full topic