Cyclic and constacyclic codes over a non-chain ring