Pregunta de entrevista de AppDynamics

Mostly simple coding questions. The worst involved using graphs.