Bloomberg interview question

A easy piecewise function question with Java

Interview Answer

Anonymous

Jul 6, 2017

I write out the code, but they asked me a follow up math question, I fail to answer it