Nomura Interview Question

Difficult numerical test