8x8 interview question

recompose abstraction to composition in java;