Code Solution for CCI 150