Ericsson Interview Question

Write OO code for a problem