Coding Challenge:

We would like you to solve the following coding challenge. Please do so while adhering to the restrictions given! We expect that it takes you a couple of hours to complete the task. Then take at least 30 minutes and write down points that you would improve on if given more time.

Restrictions:

  • use plain java and do not add any libraries to pom
  • add unit tests for your code
  • send it to us as a zip file, the file name must contain your name

Challenge: You are given a piece of code that imports a list of users and sends them an email. For this challenge do not implement the necessary code to actually send any message, just write messages to the console.

Please extend, refactor and change the code to improve it and add the following features:

  1. only enabled users receive emails
  2. add the capability to send sms messages
  3. make sure possible dispatching options are mail|sms|both

Assume:

  • file may contain 1 million accounts
  • not all accounts are valid