DXC Technology interview question

Two Programming Questions 1. Reverse a String . 2. Check for perfect square