Please help chewbacca anfd number

https://online.codingblocks.com/app/player/58724/content/27238/4713/code-challenge

i want to solve this problem using arrays please help please share code how to solve using char array and using int array
please help