A study of stellar population of intermediate-age globular cluster NGC 2249