Two questions:
1. function need return a int, but you return boolean
2. all cases will return true, anything wrong?