Citadel Securities Interview Question

The problem required to optimize an already given function.