Infosys interview question

For loops, data structures, prime number,PLM