Anonymous interview question

In OA question basic java and javascript