Space Reducer with It's Test cases.