Armakuni Interview Question

Write a simple algorithm with TDD approach