OJ Commerce interview question

Algorithms Armstrong number Prime number in java