Lucky number

Report a typo

Given the number N with an even number of digits. If the sum of the first half of the digits equals the sum of the second half of the digits, then this number is considered lucky. For a given number, output "YES" if this number is lucky, otherwise output "NO".

Sample Input 1:

12344321

Sample Output 1:

YES

Sample Input 2:

125322

Sample Output 2:

NO
Write a program in Kotlin
fun main() {
// write your code here
}
___

Create a free account to access the full topic