Solutions for problems in CTCI