Citadel Interview Question

How to find optimal weight for a probability problem.