Atta Systems interview question

OOP, Java, Spring + 1 algorithm