for these type of questions best approach is SERIES EXPANSION the answer will be 3
as u expand the series of cosx and ex and multiply the atarting coefficient u get x3 and then so on but we consider only first term and value of limit is given finite so value of n=3 so that it can cancel the upper x3 and make the value of limit finite.