Testrig interview question

Basic questions on oops Java simple problem for whole parenthesis