The wavelength here is π and that is the only transformation from the parent function of y=cos x
If y= cos nx then the wavelength will be 2πn
so
2πn=π2n=1n=2
So it must be y=cos(2x)
Check by using Desmos graphing calculator.
Desmos is another tool that is very easy to use and very helpful to you.