Tavant interview question

Basics of java, online coding