Ensolvers interview question

OOP, Big O, Patrones, Java, Javascript