Chewbacca and Number

i am getting correct output but test case not passed here is my code please go thru it…

please help