Wildix interview question

- JS basics - simple algoritms