Backbase interview question

Java theory Live coding task