Oli Systems interview question

simple programming questions + implementing a numerical algorithm