Apple Interview Question

I was asked how I can optimize a beam.