add max depth and valid palindrome project