DXC Technology Interview Question

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