Had this problem in before solving it. Hopefully I can be a help to some of you if you get a similiar question or want to know what type of coding questions this company throws at applicants