Precalculus Examples

Find the Domain and Range y=2|cos(x)|-1
I am unable to solve this problem.