Tech Mahindra interview question

Introduction , 5 basic coding questions (like string reversal , finding anagram etc)