Apple Interview Question

2's complement and write test cases