EPAM Systems Interview Question

java program, write a test case