SoFi interview question

Simple OOPS questions, questions about Java based loops and what will be the output