Bank Hapoalim interview question

recursion questions and polymorphisem