Dell Technologies Interview Question

Write test cases for above function.