Paystone Interview Question

Coding test to test logical thinking