Nomura interview question

Difficult numerical test