Charged Particle In A Box Under The Influence of Electromagnetic Field