This challenge is designed to give us a sense of your style as a programmer as well as your ability to solve problems.
Like real life, we expect that you may need or want to look at some solutions online to this problem in order to inspire your solution. Please keep in mind that in any stage of the interview process, we may ask you to make alterations to your code to solve for different use-cases and/or edge-cases, so please make sure to write something that you fully understand.
Feel free to write additional tests and take into account as make edge cases as you would like to show us how to you problem solve.
This is what you'll need to do to submit your challenge:
- Fork this repo
- Once you're finished, email us a link to your repo
The challenge is available in both php and js. Please refer to the JS README or the PHP README for more information.