Politech interview question

Some javascript algorithm questions you can easily google