FireEye interview question

Not very difficult questions. Typical programming questions