ArisGlobal interview question

C programs, java oops concepts