Amazon Interview Question

Cannot share the code task. Also was question about creating unitests for simple function.