Tech Mahindra interview question

Armstrong number. Java basics, OOPS, Collections.