Cognizant interview question

Java program to find the nth prime number Bubble sort algorithm in Java