Find all files (type f) in the current directory (and up to 5 levels of subdirectories) that are at least 3 levels deep, do not have a .txt extension, and execute the command chmod 775 on them.
find ~ -maxdepth 5 -mindepth 3 '!' -name '*.txt' -type f -exec chmod 775 {} \;