Palo Alto Networks Interview Question

3 leet code questions, the first one was to reverse a integer, the second was given a N number you need to return a array such that the sum of all element is zero