Chewbacca and number


not passing 2/5 testcases.
please tell me the error in this code.