Trailstone Interview Question

Math and stats. Easy coding question