Great Logics interview question

Interview questions were about java technical skill