EPAM Systems interview question

1st round java questions- 1. Implement a sort. 2. Implement a custom exception. 3. Dont remember other question but it was very easy.