Anonymous interview question

Java , JavaScript based questions