Cubic Logics interview question

opps, recurtion , java basics and coading