This is for problems from https://blog.webf.zone/front-end-javascript-interviews-in-2018-19-e17b0b10514