ClaySys Technologies interview question

Based on oops