problem 121

By using a blue-red tree to analysis the problem