ctci problem 5-1