[CTCI] Implemented the compression problem

Signed-off-by: Siddharth Goel <siddharth98391@gmail.com>