Citadel Interview Question

Question on solving portfolio optimization