The check engine light can come on for many, many reasons. It will require having someone connect a scanner tool to read out the diagnostic information that is stored in the computer. This info will help point a technician to an area to start performing some inspections and tests.
If you bought this from a business I would take it back and ask that they address this for you. If you bought it from a private party, then you are on the hook for the repair.