Correct option is (b) K+
We use 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.
Only K+ cations give flame test while \(NH^+_4,Mg^{2+},Al^{3+}\) does not.