Pregunta de entrevista de J.P. Morgan

Basic Behavioral Questions and some static variable question- very simple