Guidewire interview question

Promises, recursion, using HashMap, mathematical problem solving