The correct option is D Ca2+
Flame tests are used to identify small number of metal ions in compounds. When electrons gain energy and jump into any of the empty orbitals at higher levels then they give a characteristic flame by absorbing the energy.
Here, the correct option is (b).
Only Ca2+ cations give flame test while NH+4,Mg2+,Al3+