Question: what episode of arrow does felicity find out?
Answer: Characterization. Felicity Megan Smoak is introduced as an IT expert working for Queen Consolidated in her first appearance in the season one Arrow episode "Lone Gunmen".