LinkedIn interview question

1. Find if string is numeric 2. Reverse depth sum