New York Life Interview Question

How to code something backwards.