Dell Technologies interview question

Write test cases for above function.