Cognizant Interview Question

basic codes of prime numbers printing from 1 to 100, bubble sorting