LTM Limited Interview Question

Tell about oops concept? write logic for prime numbers? logic for reversing a sentence ? write a query for creating a table?