UBS Interview Question

Standard maximizing profit question in Vectors.