Terarecon Interview Question

How will you optimize the code sample you provided?