Jane Street Interview Question

Calculate the haircuts using the given information.