https://javascript.plainenglish.io/task-i-couldnt-solve-at-a-front-end-developer-interview-e28c371791d3