Cognizant Interview Question

(1) Asked me to write a two codes in python: (i) Reverse a string (ii) Find prime numbers within the given range (2)OOPS concept (3) Binary Search, Bubble Sort (4) Built-in Functions in Python (5) One Aptitude question