Disclosed herein are compounds of Formula (I) and pharmaceutically acceptable salts thereof, wherein each of the substituents is given the definition as set forth in the specification and claims. Also disclosed are pharmaceutical compositions containing the compound of Formula (I) and use of the compound in the treatment of neurodegenerative diseases or conditions such as Alzheimers disease.