J.R. S. answered 09/10/22
Ph.D. University Professor with 10+ years Tutoring Experience
Let's look at the electron configurations for each element.
Sr: [Kr]5s2 Highest energy is 5s, so n = 5 and l = 0
In: [Kr]5s24d105p1 Highest energy is 5p, so n = 5 and l = 1
Hg: [Xe]4f145d106s2 Highest energy is 6s, so n = 6 and l = 0
Cd: [Kr]5s24d10 Highest energy is 5s, so n = 5 and l = 0