Procore Technologies Interview Question

Read the function summary and test cases, and write your logic