Cognizant Interview Question

Core related questions, Basic java questions, two coding questions. One for printing the prime numbers with a range 1 to n and second one is converting lower case letters to upper case